/* Blog-specific styles */

.nav-link.active {
    color: #786CFF;
}

/* Blog Main Content */
.blog-main {
    padding: 80px 0 120px;
    background-color: #FAF8F4;
}

.blog-intro {
    text-align: center;
    margin-bottom: 80px;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    align-items: stretch;
}

.blog-post {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.post-header {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-date {
    font-size: 14px;
    color: #999;
}

.post-tag {
    background-color: #786CFF;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.post-content {
    line-height: 1.7;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-excerpt {
    color: #666;
    margin-bottom: 24px;
    flex: 1;
}

.post-excerpt p {
    margin-bottom: 16px;
}

.read-more-btn {
    background: transparent;
    border: 2px solid #786CFF;
    color: #786CFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-btn:hover {
    background-color: #786CFF;
    color: white;
    transform: scale(1.04);
}

/* Blog Modal Styles */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content-blog {
    position: relative;
    margin: 40px auto;
    padding: 0;
    max-width: 900px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-blog {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.close-blog:hover {
    color: #333;
    background: white;
}

.full-post {
    padding: 60px;
}

.full-post h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.full-post .post-meta {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.full-post .post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.full-post .post-body p {
    margin-bottom: 24px;
}

.full-post .post-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 32px 0 16px;
}

.full-post .post-body ul {
    margin: 20px 0;
    padding-left: 24px;
}

.full-post .post-body li {
    margin-bottom: 8px;
    color: #666;
}

.full-post .post-body strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 36px;
    }

    .blog-subtitle {
        font-size: 18px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-post {
        padding: 24px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-content-blog {
        margin: 20px;
        max-width: none;
    }

    .full-post {
        padding: 30px 20px;
    }

    .full-post h1 {
        font-size: 28px;
    }

    .full-post .post-body {
        font-size: 16px;
    }

    .full-post .post-body h3 {
        font-size: 20px;
    }
    
    .comment-section {
        padding: 60px 0;
    }
    
    .comment-title {
        font-size: 28px;
    }
    
    .comment-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Animations */
.blog-post {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-post:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-post:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-post:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Comment Section */
.comment-section {
    background-color: #FAF8F4;
    padding: 80px 0;
}

.comment-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.comment-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.comment-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.comment-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #786CFF;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-btn {
    background-color: #786CFF;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #6B5FE6;
    transform: scale(1.02);
}

.submit-btn:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background-color: #E8F5E8;
    color: #4CAF50;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    border: 1px solid #C8E6C9;
}

/* Waitlist Modal Styles for Blog Page */
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 0;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #F0F0F0;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.modal-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.waitlist-form {
    padding: 30px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.waitlist-form input[type="email"] {
    padding: 16px 20px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.waitlist-form input[type="email"]:focus {
    border-color: #786CFF;
    box-shadow: 0 0 0 3px rgba(120, 108, 255, 0.1);
}

.waitlist-form .btn {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.waitlist-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments for waitlist modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        max-width: 90%;
    }
    
    .modal-header {
        padding: 30px 30px 20px;
    }
    
    .modal-header h3 {
        font-size: 24px;
    }
    
    .waitlist-form {
        padding: 20px 30px 30px;
    }
    
    .waitlist-form input[type="email"] {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .waitlist-form .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
} 

/* 移除这些样式 */
/* .template-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-template {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
} */ 

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.logo:hover .logo-text {
    color: #786CFF;
} 